<?php
if (isset($messages)) {
    echo"<ul class=\"messages\">";
    foreach ($messages as $key => $value) {
        echo "<li>" . $value['message'] . '</li>';
    }
    echo"</ul>";
}
//echo"<pre>";
//var_dump($html);
//echo"<pre>";
foreach ($html as $key => $value) {
    echo $value;
}
?>